﻿<%@ Page Title="营养素查询" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="NutrientsQueries.aspx.cs" Inherits="StoragePeriod.Web.Nutritionknowledge.NutrientsQueries" %>
<%@ Register TagPrefix="uc" TagName="tree" Src="~/UserControls/MaterialTree.ascx" %>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
    .layout{background:url(../images/images_25.jpg) no-repeat; }
    .center_rtable{ height:421px; width:744px; margin:10px auto; overflow:auto; }    
    .center_btnlist{ border-bottom:1px solid #ccc; padding-bottom:2px;}
    .center_btnlist ul li{ height:34px; padding:0px; padding:0px; line-height:34px;}
    .center_btnlist ul li input.radiocss { vertical-align:middle;}
    .center_Main{height:473px; overflow:hidden;}
    </style>
    <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="/Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(".Right_title li").click(function () {
                $(".Right_title li").css("color", "#fff");
                $(this).css("color", "#f90");
                $(".center_Main").addClass("displaynone").removeClass("displayblock");
                $("#center_" + $(this).attr("showid")).removeClass("displaynone").addClass("displayblock");
            });
            $("input[type='radio']").click(function () {
                $(".radio_page").addClass("displaynone").removeClass("displayblock");
                $("#radio_page_" + $(this).val()).removeClass("displaynone").addClass("displayblock");
            });
            $(".nav_menu li[SubmenuId='04']").trigger("mouseover");
        });
        function DisplayFunc(op) {
            if (op == 1) {
                window.location.href = 'NutrientsStandard.aspx';
            }
            else if (op == 2) {
                window.location.href = 'NutrientsOnTime.aspx';
            }
            else {
                window.location.href = 'NutrientsQueries.aspx';
            }
        }
    </script>
</asp:Content>
 
<asp:Content ID="BodyContentLeft" ContentPlaceHolderID="MainLeft"  runat="server">
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <uc:tree ID="sysTree" runat="server" RawTypeId=3 />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

<asp:Content ID="BodyContentRight" ContentPlaceHolderID="MainContent" runat="server">

<div class="Right_title">
    <ul>
    </ul>
</div>
<div class="Right_center">
    <div id="center_0" class="center_Main displayblock">
        <div class="center_btnlist">
            <ul>
               <li>显示方式：</li>
               <li>
                   <select class="select_bg01" onchange="DisplayFunc(this.value)">
                        <option value="0" selected="selected">全部</option>
                        <option value="1">参考</option>
                        <option value="2">实时</option>
                   </select>
               </li>
               <li>检测时间：</li>
               <li><asp:TextBox ID="txtStartTime" runat="server" CssClass="input" onclick="WdatePicker()"></asp:TextBox></li>
               <li>至</li>
               <li><asp:TextBox ID="txtEndTime" runat="server" CssClass="input" onclick="WdatePicker()"></asp:TextBox></li>
               <li class="width200" style="width:100px;"><asp:Button ID="Btn_Search" runat="server" 
                       Text="查  询" CssClass="rbtn_01" onclick="Btn_Search_Click" /></li>
               <li><asp:Button ID="Btn_Export" runat="server" Text="导出Excel" CssClass="rbtn_01" 
                       onclick="Btn_Export_Click" /></li>
            </ul>
            <div class="clearboth"></div>
        </div>
      <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <div class="center_rtable">
            <table class="rtb_01" cellpadding="0" cellspacing="0" border="1">
                <thead>
                    <tr>
                        <td rowspan="2">营养素</td>
                        <td colspan="2">能量(kcal)</td>
                        <td colspan="2">蛋白质(g)</td>
                        <td colspan="2">脂肪(g)</td>
                        <td colspan="2">碳水化合物(g)</td>
                        <td colspan="2">维生素C(mg)</td>
                        <td colspan="2">还原糖</td>
                        <td colspan="2">维生素A(ug)</td>
                        <td colspan="2">硫胺素</td>
                        <td colspan="2">核黄素</td>
                        <td colspan="2">维生素E(mg)</td>
                        <td colspan="2">钾</td>
                        <td colspan="2">钙</td>
                        <td colspan="2">镁</td>
                        <td colspan="2">铁</td>
                        <td colspan="2">锌</td>
                        <td colspan="2">铜</td>
                        <td colspan="2">氨基酸</td>
                        <td colspan="2">膳食纤维</td>
                    </tr>
                    <tr>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                        <td>参考</td><td>实时</td>
                    </tr>
                </thead>
                <tbody> 
                    <asp:Repeater ID="Rep_Rawinfo" runat="server">
                        <ItemTemplate>
                            <tr class="tr01" onmouseover="this.className='tr03'" onmouseout="this.className='tr01'">
                                <td class="tdcol"><%#Eval("RawName")%></td>
                                <td><%#Eval("能量")%></td><td></td>
                                <td><%#Eval("蛋白质")%></td><td><%#Eval("Food_蛋白质")%></td>
                                <td><%#Eval("脂肪")%></td><td></td>
                                <td><%#Eval("碳水化合物")%></td><td><%#Eval("Food_碳水化合物")%></td>
                                <td><%#Eval("维生素C")%></td><td><%#Eval("Food_Vc")%></td>
                                <td></td><td></td>
                                <td><%#Eval("维生素A")%></td><td><%#Eval("Food_VA")%></td>
                                <td></td><td></td>
                                <td></td><td></td>
                                <td><%#Eval("维生素E")%></td><td><%#Eval("Food_VE")%></td>
                                <td><%#Eval("钾")%></td><td><%#Eval("Food_K")%></td>
                                <td><%#Eval("钙")%></td><td><%#Eval("Food_Ca")%></td>
                                <td><%#Eval("镁")%></td><td><%#Eval("Food_Mg")%></td>
                                <td><%#Eval("铁")%></td><td><%#Eval("Food_Fe")%></td>
                                <td><%#Eval("锌")%></td><td><%#Eval("Food_Zn")%></td>
                                <td><%#Eval("铜")%></td><td><%#Eval("Food_Cu")%></td>
                                <td><%#Eval("氨基酸")%></td><td><%#Eval("Food_氨基酸")%></td>
                                <td><%#Eval("膳食纤维")%></td><td><%#Eval("Food_膳食纤维")%></td>
                            </tr>
                        </ItemTemplate>
                        <AlternatingItemTemplate>
                            <tr class="tr02" onmouseover="this.className='tr03'" onmouseout="this.className='tr02'">
                                <td class="tdcol"><%#Eval("RawName")%></td>
                                <td><%#Eval("能量")%></td><td></td>
                                <td><%#Eval("蛋白质")%></td><td><%#Eval("Food_蛋白质")%></td>
                                <td><%#Eval("脂肪")%></td><td></td>
                                <td><%#Eval("碳水化合物")%></td><td><%#Eval("Food_碳水化合物")%></td>
                                <td><%#Eval("维生素C")%></td><td><%#Eval("Food_Vc")%></td>
                                <td></td><td></td>
                                <td><%#Eval("维生素A")%></td><td><%#Eval("Food_VA")%></td>
                                <td></td><td></td>
                                <td></td><td></td>
                                <td><%#Eval("维生素E")%></td><td><%#Eval("Food_VE")%></td>
                                <td><%#Eval("钾")%></td><td><%#Eval("Food_K")%></td>
                                <td><%#Eval("钙")%></td><td><%#Eval("Food_Ca")%></td>
                                <td><%#Eval("镁")%></td><td><%#Eval("Food_Mg")%></td>
                                <td><%#Eval("铁")%></td><td><%#Eval("Food_Fe")%></td>
                                <td><%#Eval("锌")%></td><td><%#Eval("Food_Zn")%></td>
                                <td><%#Eval("铜")%></td><td><%#Eval("Food_Cu")%></td>
                                <td><%#Eval("氨基酸")%></td><td><%#Eval("Food_氨基酸")%></td>
                                <td><%#Eval("膳食纤维")%></td><td><%#Eval("Food_膳食纤维")%></td>
                            </tr>
                        </AlternatingItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
        </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </div>
</div>
<div class="Right_foot">
    <img src="../images/images_29.jpg" width="764" height="8"/>
</div>

</asp:Content>
